package com.shine.icis.hbean;

import java.io.Serializable;
import java.util.Set;

import org.apache.struts2.json.annotations.JSON;

public class MetadataCheckItem implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2415088348566987884L;
	
	public static char ON = '1';//启用
	public static char OF = '0';//禁用
	public static char DISABLE = 'N';//不可用
	public static char ENABLE = 'Y';//0与1的并集，数据库并无此值
	
	private int itemID;   //项目ID
	private String itemName; //项目名称
	private char enableFlag; //启用标志(1：启用，0：禁用)
	private String note; //说明
	
	private Set<MetadataCheckLog> metadataCheckLogs;//任务实例
	public int getItemID() {
		return itemID;
	}
	public void setItemID(int itemID) {
		this.itemID = itemID;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public char getEnableFlag() {
		return enableFlag;
	}
	public void setEnableFlag(char enableFlag) {
		this.enableFlag = enableFlag;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	
	@JSON(serialize=false)
	public Set<MetadataCheckLog> getMetadataCheckLogs() {
		return metadataCheckLogs;
	}
	public void setMetadataCheckLogs(Set<MetadataCheckLog> metadataCheckLogs) {
		this.metadataCheckLogs = metadataCheckLogs;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + itemID;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final MetadataCheckItem other = (MetadataCheckItem) obj;
		if (itemID != other.itemID)
			return false;
		return true;
	}
	

	
}
